<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工列表</title>

<script type="text/javascript" src="scripts/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
	$(function() {
		$(".delete").click(function() {
			var href = $(this).attr("href");
			$("form").attr("action", href).submit();
			return false;
		});
	})
</script>
</head>
<body>

	<form action="delete" method="post">
		<input type="hidden" name="_method" value="DELETE"></input>
	</form>

	<a href="i18n?locale=zh_CH">中文</a>


	<a href="i18n?locale=en_US">英文</a>
	<br>
	<br>


	<c:if test="${empty requestScope.employees }">
   无任何信息
</c:if>

	<c:if test="${!empty requestScope.employees }">
		<table border="1" cellpadding="10" cellspacing="0">
			<tr>

				<th><fmt:message key="i18n.jigan"></fmt:message></th>



				<th><fmt:message key="i18n.niaodanbai"></fmt:message></th>

				<th><fmt:message key="i18n.hour24"></fmt:message></th>

				<th><fmt:message key="i18n.date"></fmt:message></th>

			</tr>
			<c:forEach items="${requestScope.employees }" var="emp">
				<tr>
					<td>${emp.jigan }</td>
					<td>${emp.niaodanbai }</td>
					<td>${emp.hour24 }</td>
					<td>${emp.date}</td>
				</tr>

			</c:forEach>
		</table>


	</c:if>

	<br>
	<br>
	<a href="emp">添加新数据</a>

</body>
</html>